#!/usr/bin/env python
# -*- encoding: utf-8 -*-

lines = ["first line", "second line", "third line"]
f = open("t1.txt", "w")
f.write("\n".join(lines))
f.write("\n")

f.close()

